package com.springboot.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName ConfigBean
 * @Description TODO
 * @Author peter
 * @Date 19-4-11 下午5:58
 * @Version 1.0
 **/

@ConfigurationProperties(prefix = "peter.blog")
public class ConfigBean {

    private String name;
    private String title;

    @Override
    public String toString() {
        return "ConfigBean{" +
                "name='" + name + '\'' +
                ", title='" + title + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
